import http from '../utils/http/http.js'

const login = (data) => {
    return http.post("/user/login", data);
};
const getUserList = (data) => {
    return http.get("/sys/user/list", data);
};
const saveUser = (data) => {
    return http.post("/sys/user/add", data);
};
const editUser = (data) => {
    return http.put("/sys/user/edit", data);
};
const delUser = (data) => {
    return http.del("/sys/user/delete?id="+data);
};
const getUserRole = (data) => {
    return http.get("/sys/user/queryUserRole", data);
};
const getUserDepart = (data) => {
    return http.get("/sys/user/userDepartList", data);
};
export default {
<<<<<<< HEAD
    login, getUserList, saveUser, editUser,delUser,getUserDepart,getUserRole
=======
    login, getUserList, saveUser, editUser,delUser
>>>>>>> 61245a080de0a6db0e91cdacdbb6409c58c67aa6
}